import request from '@/utils/request'

// 查询拆除处置阶段列表
export function listDemolitionPhase(query) {
  return request({
    url: '/business/demolitionPhase/list',
    method: 'get',
    params: query
  })
}

// 查询拆除处置阶段详细
export function getDemolitionPhase(demolitionId) {
  return request({
    url: '/business/demolitionPhase/' + demolitionId,
    method: 'get'
  })
}

// 新增拆除处置阶段
export function addDemolitionPhase(data) {
  return request({
    url: '/business/demolitionPhase',
    method: 'post',
    data: data
  })
}

// 修改拆除处置阶段
export function updateDemolitionPhase(demolitionId, data) {
  return request({
    url: '/business/demolitionPhase/' + demolitionId,
    method: 'put',
    data: data
  })
}

// 删除拆除处置阶段
export function delDemolitionPhase(demolitionId) {
  return request({
    url: '/business/demolitionPhase/' + demolitionId,
    method: 'delete'
  })
}
